﻿<navigation:Page x:Class="Toon.Views.NewCharacter" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:localControls="clr-namespace:Toon.Controls"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="NewCharacter Page">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <Button Content="Save" Command="{Binding SaveCommand}" Margin="4" Padding="4" />
            <Button Content="Print" Command="{Binding PrintCommand}" Margin="4" Padding="4" />
            <localControls:LabeledTextBlock VerticalAlignment="Center" Text="{Binding CurrentCharacter.UnspentSkillPoints}" LabelContent="Unspent Skill Points:"/>
        </StackPanel>
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Grid.Row="1">
            <localControls:CharacterSheet x:Name="CharacterSheet" DataContext="{Binding}" EditMode="SkillPoints" />
        </ScrollViewer>
    </Grid>
</navigation:Page>
